﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ExpertiseForm.ascx.cs" Inherits="WEB.APP.Controls.System.ExpertiseForm" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<ext:Window 
    ID="winDetails" 
    runat="server" 
    Title="Expertise" 
    Frame="false" 
    Hidden="true" 
    CenterOnLoad="true" 
    Width="300" 
    Resizable="false" 
    Closable="true" 
    Layout="Fit" 
    AutoHeight="true"
    BodyStyle="padding:5px 5px 0px 5px;"
    Icon="Group"
    Modal="true">
    <Items>
        <ext:FormPanel ID="FormPanel1" runat="server" Header="false" Border="false" MonitorValid="true"
            BodyStyle="background-color:transparent;" Layout="FormLayout" Height="32" HideLabels="true">
            <Items>
                <ext:Hidden ID="hfID" runat="server" />
                <ext:TextField ID="txtWord" runat="server" Anchor="100%" AllowBlank="false"/>
            </Items>
            <Listeners>
                <ClientValidation Handler="#{btnSave}.setDisabled(!valid);" />
            </Listeners>
        </ext:FormPanel>
    </Items>
    <Buttons>
        <ext:Button ID="btnNew" runat="server" Text="New" Icon="New">
            <DirectEvents>
                <Click OnEvent="btnNew_Click" />
            </DirectEvents>
        </ext:Button>
        <ext:Button ID="btnSave" runat="server" Text="Save" Icon="Disk">
            <DirectEvents>
                <Click OnEvent="btnSave_Click" />
            </DirectEvents>
        </ext:Button>
        <ext:Button ID="btnCancel" runat="server" Text="Cancel" Icon="Cancel">
            <Listeners>
                <Click Handler="#{winDetails}.hide();" />
            </Listeners>
        </ext:Button>
    </Buttons>
</ext:Window>
